package c.x.jy.dao.dao;

import c.x.jy.dao.dto.OrderCommisionEntityDto;
import c.x.jy.dao.entity.OrderCommisionEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 订单分佣表
 * 
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-25 10:50:26
 */
@Mapper
public interface OrderCommisionDao extends BaseMapper<OrderCommisionEntity> {

    @Select("select * from t_order_commision  ${ew.customSqlSegment} order by create_date desc")
    IPage<OrderCommisionEntityDto> querypage(IPage<OrderCommisionEntity> page,@Param(Constants.WRAPPER)  QueryWrapper<OrderCommisionEntity> query);
}

